Number systems, conversions, storage units & coding systems — with interactive tools to practice.
The language of computers. Represents voltage states: 0 = OFF, 1 = ON.
Shorthand for binary. Each octal digit = exactly 3 binary bits.
The everyday number system humans use since childhood.
Compact binary. Each hex digit = exactly 4 binary bits.
Each digit's value depends on its position. Example: decimal 325 = (3×10²) + (2×10¹) + (5×10⁰)
BINARY (base 2)
HEX (base 16)
| Decimal | Binary | Octal | Hexadecimal |
|---|
(input) marks your source base — step cards below show the 3 outbound conversions.
Select a base and enter a number.
Select a base and enter a number.
Select a base and enter a number.
| Hex | Binary | Hex | Binary |
|---|---|---|---|
| 0 | 0000 | 8 | 1000 |
| 1 | 0001 | 9 | 1001 |
| 2 | 0010 | A | 1010 |
| 3 | 0011 | B | 1011 |
| 4 | 0100 | C | 1100 |
| 5 | 0101 | D | 1101 |
| 6 | 0110 | E | 1110 |
| 7 | 0111 | F | 1111 |
The leftmost non-zero digit/bit. Has the highest positional value.
The rightmost digit/bit. Has the lowest positional value.
| Number | System | MSD/MSB | LSD/LSB |
|---|---|---|---|
| 329 | Decimal | 3 | 9 |
| 1237.0 | Decimal | 1 | 7 |
| 58.32 | Decimal | 5 | 2 |
| 0.0975 | Decimal | 9 | 5 |
| 1001 | Binary | 1 (2³) | 1 (2⁰) |
| 011.101 | Binary | 1 (2¹) | 1 (2⁻³) |
| AD239 | Hex | A | 9 |
| 23.08 | Octal | 2 | 8 |
| Device | Capacity Range | Access Speed | Cost/Unit |
|---|---|---|---|
| Register Memory | 1 KB | ⚡ Fastest | 💰 Highest |
| Cache Memory | 3 MB – 32 MB | ⚡ Very Fast | 💰 Very High |
| RAM | 1 GB – 64 GB | 🔶 Fast | Medium |
| ROM / Flash | 1 GB – 64 GB | 🔶 Medium | Medium |
| Hard Disk | 100 GB – 6 TB | 🐢 Slow | 💚 Low |
| DVD | 4.7 GB – 9 GB | 🐢 Slow | 💚 Low |
| CD | 650 MB – 900 MB | 🐢 Slow | 💚 Low |
| Magnetic Tape | 1 TB – 185 TB | 🐢 Slowest | 💚 Lowest |
4 bits per digit. Only decimal (0–9). 16 symbols max. Used in early computers.
7 bits → 128 characters. English text. Designed by ANSI. Still widely used.
8 bits → 256 characters. Used in IBM mainframe computers.
16 bits → 65,536 symbols. Covers Sinhala, Tamil, Chinese, emojis & more.
| System | Bits | Characters | Use Case |
|---|---|---|---|
| BCD | 4 | 16 | Decimal digits only (legacy) |
| ASCII | 7 | 128 | English text & control chars |
| EBCDIC | 8 | 256 | IBM mainframes |
| Unicode | 16 | 65,536+ | All world languages, emojis |